import request from '@/utils/request'
// 列表查询
export function findAll(params) {
  return request({
    url: '/insight/reportManage/findAll',
    method: 'get',
    params: params
  })
}
// 添加
export function insertReportManage(data) {
  return request({
    url: '/insight/reportManage/insertReportManage',
    method: 'post',
    data: data,
    headers: {
      'Content-Type': 'application/json;charset:utf-8'
    }
  })
}
// 删除
export function deleteById(params) {
  return request({
    url: '/insight/reportManage/deleteById',
    method: 'delete',
    params: params,
  })
}
// 修改
export function updateReport(data) {
  return request({
    url: '/insight/reportManage/updateReport',
    method: 'put',
    data: data,
    headers: {
      'Content-Type': 'application/json;charset:utf-8'
    }
  })
}
// 关联指标回显
export function findAllByReportId(params) {
  return request({
    url: '/insight/indexManage/findAllByReportId',
    method: 'get',
    params: params
  })
}
// 关联指标列表
export function findIndicator() {
  return request({
    url: '/insight/indexManage/findIndicator',
    method: 'get',
  })
}
// 关联指标添加
export function saveReportIndex(data) {
  return request({
    url: '/insight/reportIndex/saveReportIndex',
    method: 'post',
    data: data,
    headers: {
      'Content-Type': 'application/json;charset:utf-8'
    }
  })
}
